package com.zhang.springbootdemo.mapper;

import com.zhang.springbootdemo.dto.TestStudentDto;
import com.zhang.springbootdemo.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
//多对一查询
public interface StudentMapper {
    List<Student> studentList();
    List<Student> studentList(int tid);

    List<Map> getStudents(TestStudentDto testStudentDto);

    List<Map> getStudentsByGet(@Param("name") String name, @Param("tId") String tId);
}
